package com.atomos.strategy.action.display
{
	import flash.geom.Point;
	
	import com.atomos.particle.DisplayObjectParticle;
	import com.atomos.particle.Particle;
	import com.atomos.strategy.action.AbstractAction;	

	public class ScaleAction extends AbstractAction
	{
		protected var _pGrowthSpeed : Point;
		
		public function ScaleAction ( growthSpeed : Point = null )
		{
			_pGrowthSpeed = growthSpeed ? growthSpeed : new Point();
		}
		
		override public function process( particle : Particle ) : void
		{
			var p : DisplayObjectParticle = particle as DisplayObjectParticle;
			
			p.scale.x += _pGrowthSpeed.x * _nTimeStep;
			p.scale.y += _pGrowthSpeed.y * _nTimeStep;
		}
	}
}